﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;

namespace BattleTank3D.Obstaculo
{
    class Piramide_4B
    {
        public CModel obstaculo {get; set;}
        public Vector3 position { get; set;}
        public float rotation { get; set; }

        public Piramide_4B(Model model, Vector3 pos, GraphicsDevice graphicsdevice)
        {
            Random random = new Random(DateTime.Now.Millisecond);
            this.obstaculo = new CModel(model,
                pos, 
                new Vector3(0, (float)random.NextDouble()*MathHelper.TwoPi, 0),
                new Vector3(0.2f),
                graphicsdevice);
            this.position = pos;
        }

        public void Draw(Matrix view, Matrix proj)
        {
            this.obstaculo.Draw(view, proj, this.obstaculo.Position);
            //this.obstaculo.Draw(Matrix.CreateTranslation(this.position), view, proj);
        }
    }
}
